package cn.cs.fallback;

import cn.cs.client.ShopOrderClient;
import cn.cs.pojo.ShopOrder;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


/**
 * 类似于try catch中的catch块中的内容，即发生错误时，处理的过程
 * 是用来发生熔断时的顶包组件,因此也必须实现接口
 * 异常时做一些处理，给用户一个交代
 * */
@Component
public class ShopOrderFallBack implements ShopOrderClient {
    @Override
    public int getStateProByOutNum(String shopOrdernum) {
        return 0;
    }

    @Override
    public int updateShopOrderState(Map<String, Object> param) {
        return 0;
    }

    @Override
    public ShopOrder getShopOrderById(Long id) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getShopOrderByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getShopOrderDetails(String id) throws Exception {
        return null;
    }

    @Override
    public Integer getShopOrderCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getShopOrderAgentByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getShopOrderCountAgentByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer itriptxAddShopOrder(ShopOrder shopOrder) throws Exception {
        return null;
    }

    @Override
    public Integer itriptxModifyShopOrder(ShopOrder shopOrder) throws Exception {
        return null;
    }

    @Override
    public Integer itriptxDeleteShopOrderById(Long id) throws Exception {
        return null;
    }

    @Override
    public List<String> getShopIds(Map<String, Object> param) {
        return null;
    }

    @Override
    public int insertShopOrder(ShopOrder order) {
        return 0;
    }

    @Override
    public int updateCarProListState(Map<String, Object> paramMap) {
        return 0;
    }

    @Override
    public int getCarProCun(String carid) {
        return 0;
    }

    @Override
    public int updateCarStateFin(String carid) {
        return 0;
    }

    @Override
    public int insertOrder_pro_rel(Map<String, Object> pro) {
        return 0;
    }
}
